<%@ page import="pojoCla.SysUser" %><%--
  Created by IntelliJ IDEA.
  User: zhazha
  Date: 2021/9/1
  Time: 11:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>新闻发布管理平台</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link href="css/main.css" rel="stylesheet">
  <%
      SysUser user =(SysUser) session.getAttribute("user");
      if(user == null){
        response.sendRedirect("login.jsp");
        return;
      }
  %>

  <body>
  <div class="header">
    <div class="header_in">
      <img src="images/tit.png">
      <div class="quit text_center" id="exit">安全退出</div>
    </div>

  </div>

  <div class="content ">
    <div class="user">
      <div class="user_status fl text_center">当前用户： <span>${sessionScope.user.acct}</span></div>
      <div class="user_location fl">当前： 首页-<span id="showBuild"><%="1".equals(user.getSysCode()) ? "新闻管理":"账户管理" %></span>  </div>
    </div>
    <%
      if(!"1".equals(user.getSysCode())){
        %>
    <div class="nav_side text_center fl" id="indexF">
      <div class="nav AccountManagement active" name="userRights">账户管理</div>
      <div class="nav ColumnManagement" name="userRights">栏目管理</div>
      <div class="nav NewsManagement">新闻管理</div>
    </div>

    <div class="main_fx">

      <div class="AccountManagement_c_iframe">

        <iframe src="page/AccountManagement.jsp" name="userRightsIframe"></iframe>
      </div>

    </div>
    <%
      }else {
        %>
    <div class="main_fx">

      <div style="margin-left: 20px;margin-right: 20px" >

        <iframe src="/doNews?method=fistLoad" name="userRightsIframe"></iframe>
      </div>

    </div>
    <%
      }
    %>

  </div>
  </body>

  <script type="text/javascript" src="js/jquery.js"></script>
  <script type="text/javascript" src="js/main.js"></script>
</html>
